home *** CD-ROM | disk | FTP | other *** search
/ Visual Cafe 3 / Visual Cafe 3.ISO / Vcafe / Sample.bin / ColumnOfBoxes.java < prev    next >
Text File  |  1998-09-15  |  315b  |  23 lines

  1.  
  2. import java.awt.*;
  3. import java.awt.event.*;
  4.  
  5.  
  6. public class ColumnOfBoxes extends Panel
  7. {
  8.   public Insets getInsets()
  9.   {
  10.     return new Insets(100, 0, 100, 0);
  11.   }
  12.  
  13.   ColumnOfBoxes(Color c, int n)
  14.   {
  15.     setLayout(new GridLayout(0, 1, 2, 2));
  16.     for(int i = 0; i < n; i++) {
  17.       add(new Box(c));
  18.     }
  19.   }
  20. }
  21.  
  22.  
  23.